To reuse this Dialog box to create a connection string, see:
SQL Server magazine, Using the Data Link API
Microsoft Knwledge Base, HOW TO: Build a Connection String Programmatically in ADO.NET by using Visual C#.NET